'use strict';

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

exports.__esModule = true;
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var request_1 = require('../../utils/request');

var globalData_1 = require('../../globalData');

var marketingRequest = new request_1['default']({
    ApiUrl: globalData_1['default'].marketingUrl
}); // 消息中心 分页

exports.getMessagePageApi = function (params) {
    return marketingRequest.getRequest({
        url: 'app/user/message/page',
        data: params
    });
}; // 点击已读

exports.getMessageReadApi = function (params) {
    return marketingRequest.getRequest({
        url: 'app/user/message/read',
        data: params
    });
}; // 一键已读 分页

exports.getMessageReadAllApi = function (params) {
    return marketingRequest.getRequest({
        url: 'app/user/message/readAll',
        data: params
    });
}; // 消息阅读状态

exports.getMessageStatus = function (params) {
    return marketingRequest.getRequest({
        url: 'app/user/message/getNewStatus',
        data: params
    });
};
